import request from '@/utils/request'

// 查询供应商流向(连锁)列表
export function listLs(query) {
  return request({
    url: '/flow/ls/list',
    method: 'get',
    params: query
  })
}

// 查询供应商流向(连锁)详细
export function getLs(id) {
  return request({
    url: '/flow/ls/' + id,
    method: 'get'
  })
}

// 新增供应商流向(连锁)
export function addLs(data) {
  return request({
    url: '/flow/ls',
    method: 'post',
    data: data
  })
}

// 修改供应商流向(连锁)
export function updateLs(data) {
  return request({
    url: '/flow/ls',
    method: 'put',
    data: data
  })
}

// 删除供应商流向(连锁)
export function delLs(id) {
  return request({
    url: '/flow/ls/' + id,
    method: 'delete'
  })
}
